<!DOCTYPE html>
<html>
    
    <head>
        <meta charset="UTF-8">
		<title>小鱼ADMIN</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="stylesheet" href="/public/static/css/font.css">
		<link rel="stylesheet" href="/public/static/css/bgadmin.css">
		<script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
		<script type="text/javascript" src="/public/static/js/jquery.form.js"></script>  
    </head>
    
    <body>
        <div class="bg-body">
            <form  action="#" method="post" id="mainForm" class="layui-form">
                <div class="layui-form-item">
                    <div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>商品名称：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="good_name_id" name="good_name" required="" lay-verify="required"
							autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>商品规格：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="good_norm_id" name="good_norm" required="" lay-verify="required"
							autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>商品价格：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="price_id" name="price" required="" lay-verify="required"
							autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							<span class="bg-red">*&nbsp;&nbsp;</span>商品库存：
						</label>
						<div class="layui-input-inline">
							<input type="text" id="good_Inventory_id" name="good_Inventory" required="" lay-verify="required"
							autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品分类：</label>
						<div class="layui-input-inline">
						  <select name="cate_id" id="cate_id" lay-filter="aihao"  lay-verify="">
							<option value=""></option>
							{volist name="cateData" id="vo2"} 
							<option value="{$vo2.id}">{$vo2.cat_name}</option>
							{/volist}
						  </select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							商品品牌：
						</label>
						<div class="layui-input-inline">
							<select name="brand_id" id="brand_id" lay-filter="" required="" lay-verify="">
							<option value=""></option>
							{volist name="brandData" id="vo3"} 
							<option value="{$vo3.id}">{$vo3.brand_name}</option>
							{/volist}
						  </select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label"><span class="bg-red">*&nbsp;&nbsp;</span>是否显示：</label>
						<div class="layui-input-inline">
						  <select name="good_enabled" lay-filter="aihao" required="" lay-verify="required">
							<option value=""></option>
							<option value="Y">显示</option>
							<option value="N">不显示</option>
						  </select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">
							商品图片：
						</label>
						<div class="layui-input-inline">
							<button type="button" class="layui-btn" id="test3"><i class="layui-icon"></i>&nbsp;上&nbsp;传&nbsp;商&nbsp;品&nbsp;图&nbsp;片</button>
						</div>
					</div>
			    </div>	
				
                <fieldset class="layui-elem-field layui-field-title">
				  <legend>设置商品属性信息</legend>
				</fieldset>
				
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">商品类型：</label>
						<div class="layui-input-inline">
						  <select name="type_id" id="type_id" lay-filter="text_type"  lay-verify="">
							<option value=""></option>
							{volist name="typeData" id="vo1"} 
							<option value="{$vo1.id}">{$vo1.caty_name}</option>
							{/volist}
						  </select>
						</div>
					</div>
				</div>
				<div class="layui-form-item"  id="id_attribute">
					
					
				</div>
				<div class="layui-form-item layui-form-text">
                    <label for="desc" class="layui-form-label">
                        简单描述：
                    </label>
                    <div class="layui-input-block">
                        <input type="text" name="simple_description" lay-verify="" autocomplete="off" placeholder="请输入内容" class="layui-input">
                    </div>
                </div>
				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">商品详细描述：</label>
					<div class="layui-input-block">
					  <textarea class="layui-textarea layui-hide" name="good_description" lay-verify="content" id="LAY_demo_editor"></textarea>
					</div>
				</div>
                <div class="layui-form-item">
					<a class="layui-btn" lay-submit=""  id="save" lay-filter="add">增加</a>
				</div>
            </form>
        </div>
    </body>
	 <script type="text/javascript" src="/public/static/crm/js/goods/addGoods.js"></script>
</html>